home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / M / M2TSkel.cpt / M2TSkel / MultiSkelRgn.mod < prev    next >
MacBinary  |  1987-04-16  |  4.8 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: MultiSkelRgn.mod

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert SoundTracker Module (music/soundTracker) ext Supported
65% dexvert Chip Tracker Module (music/chipTracker) ext Supported
64% dexvert Protracker Module (music/mod) ext Supported
63% dexvert Octalyser Module (music/octalyser) ext Supported
61% dexvert Star Tracker/StarTrekker Module (music/starTracker) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert PollyTracker Module (music/pollyTracker) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Apr 16 18:37:29 1987, modified Thu Apr 16 18:37:29 1987, creator 'MPS ', type ASCII, 4276 bytes "MultiSkelRgn.mod" , at 0x1134 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 4d 75 6c 74 69 53 | 6b 65 6c 52 67 6e 2e 6d |..MultiS|kelRgn.m|
|00000010| 6f 64 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |od......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 10 b4 00 | 00 01 7e 9c ab 0d a9 9c |........|..~.....|
|00000060| ab 0d a9 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 48 05 00 00 |........|....H...|
|00000080| 49 4d 50 4c 45 4d 45 4e | 54 41 54 49 4f 4e 20 4d |IMPLEMEN|TATION M|
|00000090| 4f 44 55 4c 45 20 4d 75 | 6c 74 69 53 6b 65 6c 52 |ODULE Mu|ltiSkelR|
|000000a0| 67 6e 3b 0d 0d 46 52 4f | 4d 20 53 59 53 54 45 4d |gn;..FRO|M SYSTEM|
|000000b0| 20 49 4d 50 4f 52 54 20 | 41 44 44 52 45 53 53 3b | IMPORT |ADDRESS;|
|000000c0| 0d 46 52 4f 4d 20 51 75 | 69 63 6b 44 72 61 77 20 |.FROM Qu|ickDraw |
|000000d0| 49 4d 50 4f 52 54 20 52 | 65 63 74 2c 20 50 6f 69 |IMPORT R|ect, Poi|
|000000e0| 6e 74 2c 20 4e 65 77 52 | 67 6e 2c 20 44 69 73 70 |nt, NewR|gn, Disp|
|000000f0| 6f 73 65 52 67 6e 2c 20 | 45 72 61 73 65 52 67 6e |oseRgn, |EraseRgn|
|00000100| 2c 20 45 72 61 73 65 52 | 65 63 74 2c 0d 09 09 09 |, EraseR|ect,....|
|00000110| 09 09 09 09 09 09 09 09 | 55 6e 69 6f 6e 52 67 6e |........|UnionRgn|
|00000120| 2c 20 44 69 66 66 52 67 | 6e 2c 20 53 65 74 45 6d |, DiffRg|n, SetEm|
|00000130| 70 74 79 52 67 6e 2c 20 | 45 6d 70 74 79 52 65 63 |ptyRgn, |EmptyRec|
|00000140| 74 2c 20 4d 61 70 52 67 | 6e 2c 0d 09 09 09 09 09 |t, MapRg|n,......|
|00000150| 09 09 09 09 09 09 46 72 | 61 6d 65 52 67 6e 2c 20 |......Fr|ameRgn, |
|00000160| 47 72 61 66 50 74 72 2c | 20 50 65 6e 53 74 61 74 |GrafPtr,| PenStat|
|00000170| 65 2c 20 47 65 74 50 65 | 6e 53 74 61 74 65 2c 20 |e, GetPe|nState, |
|00000180| 53 65 74 50 65 6e 53 74 | 61 74 65 2c 0d 09 09 09 |SetPenSt|ate,....|
|00000190| 09 09 09 09 09 09 09 09 | 47 65 74 50 6f 72 74 2c |........|GetPort,|
|000001a0| 20 50 65 6e 50 61 74 2c | 20 50 65 6e 4d 6f 64 65 | PenPat,| PenMode|
|000001b0| 2c 20 67 72 61 79 2c 20 | 70 61 74 58 6f 72 2c 20 |, gray, |patXor, |
|000001c0| 50 74 32 52 65 63 74 2c | 0d 09 09 09 09 09 09 09 |Pt2Rect,|........|
|000001d0| 09 09 09 09 45 71 75 61 | 6c 50 74 2c 20 53 65 63 |....Equa|lPt, Sec|
|000001e0| 74 52 65 63 74 2c 20 52 | 67 6e 48 61 6e 64 6c 65 |tRect, R|gnHandle|
|000001f0| 2c 20 46 72 61 6d 65 52 | 65 63 74 2c 20 52 65 63 |, FrameR|ect, Rec|
|00000200| 74 52 67 6e 3b 0d 46 52 | 4f 4d 20 45 76 65 6e 74 |tRgn;.FR|OM Event|
|00000210| 4d 61 6e 61 67 65 72 20 | 49 4d 50 4f 52 54 20 47 |Manager |IMPORT G|
|00000220| 65 74 44 62 6c 54 69 6d | 65 2c 20 53 74 69 6c 6c |etDblTim|e, Still|
|00000230| 44 6f 77 6e 2c 20 47 65 | 74 4d 6f 75 73 65 3b 0d |Down, Ge|tMouse;.|
|00000240| 46 52 4f 4d 20 4d 65 6e | 75 4d 61 6e 61 67 65 72 |FROM Men|uManager|
|00000250| 20 49 4d 50 4f 52 54 20 | 45 6e 61 62 6c 65 49 74 | IMPORT |EnableIt|
|00000260| 65 6d 2c 20 44 69 73 61 | 62 6c 65 49 74 65 6d 2c |em, Disa|bleItem,|
|00000270| 20 44 72 61 77 4d 65 6e | 75 42 61 72 3b 0d 46 52 | DrawMen|uBar;.FR|
|00000280| 4f 4d 20 57 69 6e 64 6f | 77 4d 61 6e 61 67 65 72 |OM Windo|wManager|
|00000290| 20 49 4d 50 4f 52 54 20 | 47 65 74 4e 65 77 57 69 | IMPORT |GetNewWi|
|000002a0| 6e 64 6f 77 2c 20 57 69 | 6e 64 6f 77 50 74 72 2c |ndow, Wi|ndowPtr,|
|000002b0| 20 43 6c 6f 73 65 57 69 | 6e 64 6f 77 3b 0d 46 52 | CloseWi|ndow;.FR|
|000002c0| 4f 4d 20 54 72 61 6e 73 | 53 6b 65 6c 20 49 4d 50 |OM Trans|Skel IMP|
|000002d0| 4f 52 54 20 53 6b 65 6c | 57 69 6e 64 6f 77 2c 20 |ORT Skel|Window, |
|000002e0| 57 4b 65 79 50 72 6f 63 | 2c 20 57 43 6c 6f 73 65 |WKeyProc|, WClose|
|000002f0| 50 72 6f 63 2c 20 57 49 | 64 6c 65 50 72 6f 63 3b |Proc, WI|dleProc;|
|00000300| 0d 46 52 4f 4d 20 4d 75 | 6c 74 69 53 6b 65 6c 47 |.FROM Mu|ltiSkelG|
|00000310| 6c 6f 62 61 6c 73 20 49 | 4d 50 4f 52 54 20 72 67 |lobals I|MPORT rg|
|00000320| 6e 57 69 6e 64 52 65 73 | 2c 20 73 68 69 66 74 4b |nWindRes|, shiftK|
|00000330| 65 79 2c 20 53 65 74 57 | 69 6e 64 43 6c 69 70 2c |ey, SetW|indClip,|
|00000340| 20 52 65 73 65 74 57 69 | 6e 64 43 6c 69 70 2c 0d | ResetWi|ndClip,.|
|00000350| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 20 44 |........|...... D|
|00000360| 72 61 77 47 72 6f 77 42 | 6f 78 2c 20 65 64 69 74 |rawGrowB|ox, edit|
|00000370| 4d 65 6e 75 2c 20 72 67 | 6e 57 69 6e 64 3b 0d 0d |Menu, rg|nWind;..|
|00000380| 0d 56 41 52 0d 09 73 65 | 6c 65 63 74 52 67 6e 3a |.VAR..se|lectRgn:|
|00000390| 20 52 67 6e 48 61 6e 64 | 6c 65 3b 0d 09 72 67 6e | RgnHand|le;..rgn|
|000003a0| 50 6f 72 74 52 65 63 74 | 3a 20 52 65 63 74 3b 0d |PortRect|: Rect;.|
|000003b0| 09 73 65 6c 65 63 74 57 | 68 65 6e 3a 20 4c 4f 4e |.selectW|hen: LON|
|000003c0| 47 49 4e 54 3b 0d 09 73 | 65 6c 65 63 74 57 68 65 |GINT;..s|electWhe|
|000003d0| 72 65 3a 20 50 6f 69 6e | 74 3b 0d 0d 0d 50 52 4f |re: Poin|t;...PRO|
|000003e0| 43 45 44 55 52 45 20 52 | 67 6e 41 63 74 69 76 61 |CEDURE R|gnActiva|
|000003f0| 74 65 28 61 63 74 69 76 | 65 3a 20 42 4f 4f 4c 45 |te(activ|e: BOOLE|
|00000400| 41 4e 29 3b 0d 0d 09 56 | 41 52 0d 09 09 69 3a 20 |AN);...V|AR...i: |
|00000410| 49 4e 54 45 47 45 52 3b | 0d 0d 42 45 47 49 4e 0d |INTEGER;|..BEGIN.|
|00000420| 09 44 72 61 77 47 72 6f | 77 42 6f 78 28 72 67 6e |.DrawGro|wBox(rgn|
|00000430| 57 69 6e 64 29 3b 0d 09 | 49 46 20 61 63 74 69 76 |Wind);..|IF activ|
|00000440| 65 20 54 48 45 4e 20 44 | 69 73 61 62 6c 65 49 74 |e THEN D|isableIt|
|00000450| 65 6d 28 65 64 69 74 4d | 65 6e 75 2c 20 30 29 3b |em(editM|enu, 0);|
|00000460| 0d 09 45 4c 53 45 20 45 | 6e 61 62 6c 65 49 74 65 |..ELSE E|nableIte|
|00000470| 6d 28 65 64 69 74 4d 65 | 6e 75 2c 20 30 29 3b 20 |m(editMe|nu, 0); |
|00000480| 45 4e 44 3b 0d 09 44 72 | 61 77 4d 65 6e 75 42 61 |END;..Dr|awMenuBa|
|00000490| 72 3b 0d 45 4e 44 20 52 | 67 6e 41 63 74 69 76 61 |r;.END R|gnActiva|
|000004a0| 74 65 3b 0d 0d 0d 50 52 | 4f 43 45 44 55 52 45 20 |te;...PR|OCEDURE |
|000004b0| 52 67 6e 44 72 61 77 3b | 0d 0d 09 56 41 52 0d 09 |RgnDraw;|...VAR..|
|000004c0| 09 69 3a 20 49 4e 54 45 | 47 45 52 3b 0d 0d 42 45 |.i: INTE|GER;..BE|
|000004d0| 47 49 4e 0d 09 53 65 74 | 57 69 6e 64 43 6c 69 70 |GIN..Set|WindClip|
|000004e0| 28 72 67 6e 57 69 6e 64 | 29 3b 0d 09 46 72 61 6d |(rgnWind|);..Fram|
|000004f0| 65 52 67 6e 28 73 65 6c | 65 63 74 52 67 6e 29 3b |eRgn(sel|ectRgn);|
|00000500| 0d 09 52 65 73 65 74 57 | 69 6e 64 43 6c 69 70 3b |..ResetW|indClip;|
|00000510| 0d 45 4e 44 20 52 67 6e | 44 72 61 77 3b 0d 0d 28 |.END Rgn|Draw;..(|
|00000520| 2a 0d 09 57 68 69 6c 65 | 20 6d 6f 75 73 65 20 69 |*..While| mouse i|
|00000530| 73 20 64 6f 77 6e 2c 20 | 64 72 61 77 20 67 72 61 |s down, |draw gra|
|00000540| 79 20 73 65 6c 65 63 74 | 69 6f 6e 20 72 65 63 74 |y select|ion rect|
|00000550| 61 6e 67 6c 65 20 69 6e | 20 74 68 65 20 63 75 72 |angle in| the cur|
|00000560| 72 65 6e 74 20 70 6f 72 | 74 2e 0d 09 52 65 74 75 |rent por|t...Retu|
|00000570| 72 6e 20 74 68 65 20 72 | 65 73 75 6c 74 61 6e 74 |rn the r|esultant|
|00000580| 20 72 65 63 74 20 69 6e | 20 64 73 74 52 65 63 74 | rect in| dstRect|
|00000590| 2e 20 20 54 68 65 20 72 | 65 63 74 20 69 73 20 61 |. The r|ect is a|
|000005a0| 6c 77 61 79 73 20 63 6c | 69 70 70 65 64 20 74 6f |lways cl|ipped to|
|000005b0| 20 74 68 65 0d 09 63 75 | 72 72 65 6e 74 20 70 6f | the..cu|rrent po|
|000005c0| 72 74 52 65 63 74 2e 0d | 2a 29 0d 50 52 4f 43 45 |rtRect..|*).PROCE|
|000005d0| 44 55 52 45 20 44 6f 53 | 65 6c 65 63 74 52 65 63 |DURE DoS|electRec|
|000005e0| 74 28 73 74 61 72 74 50 | 6f 69 6e 74 3a 20 50 6f |t(startP|oint: Po|
|000005f0| 69 6e 74 3b 20 56 41 52 | 20 64 73 74 52 65 63 74 |int; VAR| dstRect|
|00000600| 3a 20 52 65 63 74 29 3b | 0d 0d 09 56 41 52 0d 09 |: Rect);|...VAR..|
|00000610| 09 70 74 2c 20 64 72 61 | 67 50 74 3a 20 50 6f 69 |.pt, dra|gPt: Poi|
|00000620| 6e 74 3b 0d 09 09 72 43 | 6c 69 70 3a 20 52 65 63 |nt;...rC|lip: Rec|
|00000630| 74 3b 0d 09 09 74 68 65 | 50 6f 72 74 3a 20 47 72 |t;...the|Port: Gr|
|00000640| 61 66 50 74 72 3b 0d 09 | 09 72 65 73 75 6c 74 3a |afPtr;..|.result:|
|00000650| 20 42 4f 4f 4c 45 41 4e | 3b 0d 09 09 70 73 3a 20 | BOOLEAN|;...ps: |
|00000660| 50 65 6e 53 74 61 74 65 | 3b 0d 09 09 69 3a 20 49 |PenState|;...i: I|
|00000670| 4e 54 45 47 45 52 3b 0d | 0d 42 45 47 49 4e 0d 09 |NTEGER;.|.BEGIN..|
|00000680| 47 65 74 50 6f 72 74 28 | 74 68 65 50 6f 72 74 29 |GetPort(|thePort)|
|00000690| 3b 0d 09 72 43 6c 69 70 | 20 3a 3d 20 74 68 65 50 |;..rClip| := theP|
|000006a0| 6f 72 74 5e 2e 70 6f 72 | 74 52 65 63 74 3b 0d 09 |ort^.por|tRect;..|
|000006b0| 44 45 43 28 72 43 6c 69 | 70 2e 72 69 67 68 74 2c |DEC(rCli|p.right,|
|000006c0| 20 31 35 29 3b 0d 09 47 | 65 74 50 65 6e 53 74 61 | 15);..G|etPenSta|
|000006d0| 74 65 28 70 73 29 3b 0d | 09 50 65 6e 50 61 74 28 |te(ps);.|.PenPat(|
|000006e0| 67 72 61 79 29 3b 0d 09 | 50 65 6e 4d 6f 64 65 28 |gray);..|PenMode(|
|000006f0| 70 61 74 58 6f 72 29 3b | 0d 09 64 72 61 67 50 74 |patXor);|..dragPt|
|00000700| 20 3a 3d 20 73 74 61 72 | 74 50 6f 69 6e 74 3b 0d | := star|tPoint;.|
|00000710| 09 50 74 32 52 65 63 74 | 28 64 72 61 67 50 74 2c |.Pt2Rect|(dragPt,|
|00000720| 20 64 72 61 67 50 74 2c | 20 64 73 74 52 65 63 74 | dragPt,| dstRect|
|00000730| 29 3b 0d 09 46 72 61 6d | 65 52 65 63 74 28 64 73 |);..Fram|eRect(ds|
|00000740| 74 52 65 63 74 29 3b 0d | 09 52 45 50 45 41 54 0d |tRect);.|.REPEAT.|
|00000750| 09 09 47 65 74 4d 6f 75 | 73 65 28 70 74 29 3b 0d |..GetMou|se(pt);.|
|00000760| 09 09 49 46 20 4e 4f 54 | 20 45 71 75 61 6c 50 74 |..IF NOT| EqualPt|
|00000770| 28 70 74 2c 20 64 72 61 | 67 50 74 29 20 54 48 45 |(pt, dra|gPt) THE|
|00000780| 4e 09 28 2a 20 4d 6f 75 | 73 65 20 68 61 73 20 6d |N.(* Mou|se has m|
|00000790| 6f 76 65 64 2c 20 63 68 | 61 6e 67 65 20 72 65 67 |oved, ch|ange reg|
|000007a0| 69 6f 6e 20 2a 29 0d 09 | 09 09 46 72 61 6d 65 52 |ion *)..|..FrameR|
|000007b0| 65 63 74 28 64 73 74 52 | 65 63 74 29 3b 0d 09 09 |ect(dstR|ect);...|
|000007c0| 09 64 72 61 67 50 74 20 | 3a 3d 20 70 74 3b 0d 09 |.dragPt |:= pt;..|
|000007d0| 09 09 50 74 32 52 65 63 | 74 28 64 72 61 67 50 74 |..Pt2Rec|t(dragPt|
|000007e0| 2c 20 73 74 61 72 74 50 | 6f 69 6e 74 2c 20 64 73 |, startP|oint, ds|
|000007f0| 74 52 65 63 74 29 3b 0d | 09 09 09 72 65 73 75 6c |tRect);.|...resul|
|00000800| 74 20 3a 3d 20 53 65 63 | 74 52 65 63 74 28 64 73 |t := Sec|tRect(ds|
|00000810| 74 52 65 63 74 2c 20 72 | 43 6c 69 70 2c 20 64 73 |tRect, r|Clip, ds|
|00000820| 74 52 65 63 74 29 3b 0d | 09 09 09 46 72 61 6d 65 |tRect);.|...Frame|
|00000830| 52 65 63 74 28 64 73 74 | 52 65 63 74 29 3b 0d 09 |Rect(dst|Rect);..|
|00000840| 09 09 46 4f 52 20 69 20 | 3a 3d 20 30 20 54 4f 20 |..FOR i |:= 0 TO |
|00000850| 39 39 39 20 44 4f 20 28 | 2a 20 4e 4f 54 48 49 4e |999 DO (|* NOTHIN|
|00000860| 47 20 2a 29 3b 20 45 4e | 44 3b 0d 09 09 45 4e 44 |G *); EN|D;...END|
|00000870| 3b 0d 09 55 4e 54 49 4c | 20 4e 4f 54 20 53 74 69 |;..UNTIL| NOT Sti|
|00000880| 6c 6c 44 6f 77 6e 28 29 | 3b 0d 09 46 72 61 6d 65 |llDown()|;..Frame|
|00000890| 52 65 63 74 28 64 73 74 | 52 65 63 74 29 3b 0d 09 |Rect(dst|Rect);..|
|000008a0| 53 65 74 50 65 6e 53 74 | 61 74 65 28 70 73 29 3b |SetPenSt|ate(ps);|
|000008b0| 0d 45 4e 44 20 44 6f 53 | 65 6c 65 63 74 52 65 63 |.END DoS|electRec|
|000008c0| 74 3b 0d 0d 28 2a 0d 09 | 4f 6e 20 61 20 64 62 6c |t;..(*..|On a dbl|
|000008d0| 2d 63 6c 69 63 6b 2c 20 | 63 6c 65 61 72 20 77 69 |-click, |clear wi|
|000008e0| 6e 64 6f 77 2e 20 20 4f | 6e 20 61 20 73 69 6e 67 |ndow. O|n a sing|
|000008f0| 6c 65 20 63 6c 69 63 6b | 2c 20 64 72 61 77 20 67 |le click|, draw g|
|00000900| 72 61 79 20 73 65 6c 65 | 63 74 69 6f 6e 20 72 65 |ray sele|ction re|
|00000910| 63 74 0d 09 61 73 20 6c | 6f 6e 67 20 61 73 20 74 |ct..as l|ong as t|
|00000920| 68 65 20 6d 6f 75 73 65 | 20 69 73 20 64 6f 77 6e |he mouse| is down|
|00000930| 2e 20 20 49 66 20 74 68 | 65 20 75 73 65 72 20 64 |. If th|e user d|
|00000940| 72 61 77 73 20 61 20 6e | 6f 6e 2d 65 6d 70 74 79 |raws a n|on-empty|
|00000950| 20 72 65 63 74 2c 20 74 | 68 65 6e 20 61 64 64 0d | rect, t|hen add.|
|00000960| 09 69 74 20 74 6f 20 74 | 68 65 20 73 65 6c 65 63 |.it to t|he selec|
|00000970| 74 69 6f 6e 20 72 65 67 | 69 6f 6e 20 61 6e 64 20 |tion reg|ion and |
|00000980| 72 65 64 72 61 77 20 74 | 68 65 20 72 65 67 69 6f |redraw t|he regio|
|00000990| 6e 27 73 20 6f 75 74 6c | 69 6e 65 2e 20 20 49 66 |n's outl|ine. If|
|000009a0| 20 74 68 65 20 73 68 69 | 66 74 6b 65 79 0d 09 77 | the shi|ftkey..w|
|000009b0| 61 73 20 64 6f 77 6e 2c | 20 74 68 65 6e 20 73 75 |as down,| then su|
|000009c0| 62 74 72 61 63 74 20 74 | 68 65 20 73 65 6c 65 63 |btract t|he selec|
|000009d0| 74 69 6f 6e 20 61 6e 64 | 20 72 65 64 72 61 77 2e |tion and| redraw.|
|000009e0| 0d 2a 29 0d 0d 50 52 4f | 43 45 44 55 52 45 20 52 |.*)..PRO|CEDURE R|
|000009f0| 67 6e 4d 6f 75 73 65 28 | 74 68 65 50 74 3a 20 50 |gnMouse(|thePt: P|
|00000a00| 6f 69 6e 74 3b 20 74 3a | 20 4c 4f 4e 47 49 4e 54 |oint; t:| LONGINT|
|00000a10| 3b 20 6d 6f 64 73 3a 20 | 42 49 54 53 45 54 29 3b |; mods: |BITSET);|
|00000a20| 0d 0d 09 56 41 52 0d 09 | 09 72 3a 20 52 65 63 74 |...VAR..|.r: Rect|
|00000a30| 3b 0d 09 09 72 67 6e 3a | 20 52 67 6e 48 61 6e 64 |;...rgn:| RgnHand|
|00000a40| 6c 65 3b 0d 09 09 0d 42 | 45 47 49 4e 0d 09 72 20 |le;....B|EGIN..r |
|00000a50| 3a 3d 20 72 67 6e 57 69 | 6e 64 5e 2e 70 6f 72 74 |:= rgnWi|nd^.port|
|00000a60| 52 65 63 74 3b 0d 09 49 | 46 20 74 68 65 50 74 2e |Rect;..I|F thePt.|
|00000a70| 68 20 3e 3d 20 72 2e 72 | 69 67 68 74 20 2d 20 31 |h >= r.r|ight - 1|
|00000a80| 35 20 54 48 45 4e 20 52 | 45 54 55 52 4e 3b 20 45 |5 THEN R|ETURN; E|
|00000a90| 4e 44 3b 09 28 2a 20 4d | 75 73 74 20 6e 6f 74 20 |ND;.(* M|ust not |
|00000aa0| 63 6c 69 63 6b 20 69 6e | 20 73 63 72 6f 6c 6c 20 |click in| scroll |
|00000ab0| 61 72 65 61 20 2a 29 0d | 09 49 46 20 74 20 2d 20 |area *).|.IF t - |
|00000ac0| 73 65 6c 65 63 74 57 68 | 65 6e 20 3c 3d 20 47 65 |selectWh|en <= Ge|
|00000ad0| 74 44 62 6c 54 69 6d 65 | 28 29 20 54 48 45 4e 09 |tDblTime|() THEN.|
|00000ae0| 28 2a 20 49 74 27 73 20 | 61 20 64 6f 75 62 6c 65 |(* It's |a double|
|00000af0| 2d 63 6c 69 63 6b 20 2a | 29 0d 09 09 73 65 6c 65 |-click *|)...sele|
|00000b00| 63 74 57 68 65 6e 20 3a | 3d 20 30 44 3b 0d 09 09 |ctWhen :|= 0D;...|
|00000b10| 53 65 74 57 69 6e 64 43 | 6c 69 70 28 72 67 6e 57 |SetWindC|lip(rgnW|
|00000b20| 69 6e 64 29 3b 0d 09 09 | 45 72 61 73 65 52 67 6e |ind);...|EraseRgn|
|00000b30| 28 73 65 6c 65 63 74 52 | 67 6e 29 3b 0d 09 09 52 |(selectR|gn);...R|
|00000b40| 65 73 65 74 57 69 6e 64 | 43 6c 69 70 3b 0d 09 09 |esetWind|Clip;...|
|00000b50| 53 65 74 45 6d 70 74 79 | 52 67 6e 28 73 65 6c 65 |SetEmpty|Rgn(sele|
|00000b60| 63 74 52 67 6e 29 3b 0d | 09 45 4c 53 45 0d 09 09 |ctRgn);.|.ELSE...|
|00000b70| 73 65 6c 65 63 74 57 68 | 65 6e 20 3a 3d 20 74 3b |selectWh|en := t;|
|00000b80| 0d 09 09 73 65 6c 65 63 | 74 57 68 65 72 65 20 3a |...selec|tWhere :|
|00000b90| 3d 20 74 68 65 50 74 3b | 0d 09 09 44 6f 53 65 6c |= thePt;|...DoSel|
|00000ba0| 65 63 74 52 65 63 74 28 | 74 68 65 50 74 2c 20 72 |ectRect(|thePt, r|
|00000bb0| 29 3b 0d 09 09 49 46 20 | 4e 4f 54 20 45 6d 70 74 |);...IF |NOT Empt|
|00000bc0| 79 52 65 63 74 28 72 29 | 20 54 48 45 4e 0d 09 09 |yRect(r)| THEN...|
|00000bd0| 09 73 65 6c 65 63 74 57 | 68 65 6e 20 3a 3d 20 30 |.selectW|hen := 0|
|00000be0| 44 3b 0d 09 09 09 72 67 | 6e 20 3a 3d 20 4e 65 77 |D;....rg|n := New|
|00000bf0| 52 67 6e 28 29 3b 0d 09 | 09 09 52 65 63 74 52 67 |Rgn();..|..RectRg|
|00000c00| 6e 28 72 67 6e 2c 20 72 | 29 3b 0d 09 09 09 49 46 |n(rgn, r|);....IF|
|00000c10| 20 73 68 69 66 74 4b 65 | 79 20 49 4e 20 6d 6f 64 | shiftKe|y IN mod|
|00000c20| 73 20 54 48 45 4e 20 44 | 69 66 66 52 67 6e 28 73 |s THEN D|iffRgn(s|
|00000c30| 65 6c 65 63 74 52 67 6e | 2c 20 72 67 6e 2c 20 73 |electRgn|, rgn, s|
|00000c40| 65 6c 65 63 74 52 67 6e | 29 3b 0d 09 09 09 45 4c |electRgn|);....EL|
|00000c50| 53 45 20 55 6e 69 6f 6e | 52 67 6e 28 73 65 6c 65 |SE Union|Rgn(sele|
|00000c60| 63 74 52 67 6e 2c 20 72 | 67 6e 2c 20 73 65 6c 65 |ctRgn, r|gn, sele|
|00000c70| 63 74 52 67 6e 29 3b 20 | 45 4e 44 3b 0d 09 09 09 |ctRgn); |END;....|
|00000c80| 44 69 73 70 6f 73 65 52 | 67 6e 28 72 67 6e 29 3b |DisposeR|gn(rgn);|
|00000c90| 0d 09 09 09 53 65 74 57 | 69 6e 64 43 6c 69 70 28 |....SetW|indClip(|
|00000ca0| 72 67 6e 57 69 6e 64 29 | 3b 0d 09 09 09 45 72 61 |rgnWind)|;....Era|
|00000cb0| 73 65 52 65 63 74 28 72 | 29 3b 0d 09 09 09 52 65 |seRect(r|);....Re|
|00000cc0| 73 65 74 57 69 6e 64 43 | 6c 69 70 3b 0d 09 09 09 |setWindC|lip;....|
|00000cd0| 52 67 6e 44 72 61 77 3b | 0d 09 09 45 4e 44 3b 0d |RgnDraw;|...END;.|
|00000ce0| 09 45 4e 44 3b 0d 45 4e | 44 20 52 67 6e 4d 6f 75 |.END;.EN|D RgnMou|
|00000cf0| 73 65 3b 0d 0d 0d 50 52 | 4f 43 45 44 55 52 45 20 |se;...PR|OCEDURE |
|00000d00| 52 67 6e 55 70 64 61 74 | 65 28 72 65 73 69 7a 65 |RgnUpdat|e(resize|
|00000d10| 64 3a 20 42 4f 4f 4c 45 | 41 4e 29 3b 0d 0d 09 56 |d: BOOLE|AN);...V|
|00000d20| 41 52 0d 09 09 72 3a 20 | 52 65 63 74 3b 0d 0d 42 |AR...r: |Rect;..B|
|00000d30| 45 47 49 4e 0d 09 45 72 | 61 73 65 52 65 63 74 28 |EGIN..Er|aseRect(|
|00000d40| 72 67 6e 57 69 6e 64 5e | 2e 70 6f 72 74 52 65 63 |rgnWind^|.portRec|
|00000d50| 74 29 3b 0d 09 49 46 20 | 72 65 73 69 7a 65 64 20 |t);..IF |resized |
|00000d60| 54 48 45 4e 0d 09 09 72 | 20 3a 3d 20 72 67 6e 57 |THEN...r| := rgnW|
|00000d70| 69 6e 64 5e 2e 70 6f 72 | 74 52 65 63 74 3b 0d 09 |ind^.por|tRect;..|
|00000d80| 09 44 45 43 28 72 67 6e | 50 6f 72 74 52 65 63 74 |.DEC(rgn|PortRect|
|00000d90| 2e 72 69 67 68 74 2c 20 | 31 35 29 3b 0d 09 09 44 |.right, |15);...D|
|00000da0| 45 43 28 72 2e 72 69 67 | 68 74 2c 20 31 35 29 3b |EC(r.rig|ht, 15);|
|00000db0| 0d 09 09 4d 61 70 52 67 | 6e 28 73 65 6c 65 63 74 |...MapRg|n(select|
|00000dc0| 52 67 6e 2c 20 72 67 6e | 50 6f 72 74 52 65 63 74 |Rgn, rgn|PortRect|
|00000dd0| 2c 20 72 29 3b 0d 09 09 | 72 67 6e 50 6f 72 74 52 |, r);...|rgnPortR|
|00000de0| 65 63 74 20 3a 3d 20 72 | 67 6e 57 69 6e 64 5e 2e |ect := r|gnWind^.|
|00000df0| 70 6f 72 74 52 65 63 74 | 3b 0d 09 45 4e 44 3b 0d |portRect|;..END;.|
|00000e00| 09 44 72 61 77 47 72 6f | 77 42 6f 78 28 72 67 6e |.DrawGro|wBox(rgn|
|00000e10| 57 69 6e 64 29 3b 0d 09 | 52 67 6e 44 72 61 77 3b |Wind);..|RgnDraw;|
|00000e20| 0d 45 4e 44 20 52 67 6e | 55 70 64 61 74 65 3b 0d |.END Rgn|Update;.|
|00000e30| 0d 0d 50 52 4f 43 45 44 | 55 52 45 20 52 67 6e 48 |..PROCED|URE RgnH|
|00000e40| 61 6c 74 3b 0d 0d 42 45 | 47 49 4e 0d 09 44 69 73 |alt;..BE|GIN..Dis|
|00000e50| 70 6f 73 65 52 67 6e 28 | 73 65 6c 65 63 74 52 67 |poseRgn(|selectRg|
|00000e60| 6e 29 3b 0d 09 43 6c 6f | 73 65 57 69 6e 64 6f 77 |n);..Clo|seWindow|
|00000e70| 28 72 67 6e 57 69 6e 64 | 29 3b 0d 45 4e 44 20 52 |(rgnWind|);.END R|
|00000e80| 67 6e 48 61 6c 74 3b 0d | 0d 0d 50 52 4f 43 45 44 |gnHalt;.|..PROCED|
|00000e90| 55 52 45 20 52 67 6e 49 | 6e 69 74 3b 0d 0d 42 45 |URE RgnI|nit;..BE|
|00000ea0| 47 49 4e 0d 09 72 67 6e | 57 69 6e 64 20 3a 3d 20 |GIN..rgn|Wind := |
|00000eb0| 47 65 74 4e 65 77 57 69 | 6e 64 6f 77 28 72 67 6e |GetNewWi|ndow(rgn|
|00000ec0| 57 69 6e 64 52 65 73 2c | 20 56 41 4c 28 41 44 44 |WindRes,| VAL(ADD|
|00000ed0| 52 45 53 53 2c 20 4e 49 | 4c 29 2c 20 56 41 4c 28 |RESS, NI|L), VAL(|
|00000ee0| 57 69 6e 64 6f 77 50 74 | 72 2c 20 2d 31 44 29 29 |WindowPt|r, -1D))|
|00000ef0| 3b 0d 09 53 6b 65 6c 57 | 69 6e 64 6f 77 28 09 72 |;..SkelW|indow(.r|
|00000f00| 67 6e 57 69 6e 64 2c 0d | 09 09 09 09 09 09 09 52 |gnWind,.|.......R|
|00000f10| 67 6e 4d 6f 75 73 65 2c | 09 09 09 28 2a 20 44 72 |gnMouse,|...(* Dr|
|00000f20| 61 77 20 74 68 65 20 72 | 65 63 74 61 6e 67 6c 65 |aw the r|ectangle|
|00000f30| 73 20 69 6e 20 72 65 73 | 70 2e 20 74 6f 20 6d 6f |s in res|p. to mo|
|00000f40| 75 73 65 20 64 6f 77 6e | 73 20 2a 29 0d 09 09 09 |use down|s *)....|
|00000f50| 09 09 09 09 56 41 4c 28 | 57 4b 65 79 50 72 6f 63 |....VAL(|WKeyProc|
|00000f60| 2c 20 4e 49 4c 29 2c 09 | 28 2a 20 49 67 6e 6f 72 |, NIL),.|(* Ignor|
|00000f70| 65 20 6b 65 79 20 64 6f | 77 6e 73 20 2a 29 0d 09 |e key do|wns *)..|
|00000f80| 09 09 09 09 09 09 52 67 | 6e 55 70 64 61 74 65 2c |......Rg|nUpdate,|
|00000f90| 0d 09 09 09 09 09 09 09 | 52 67 6e 41 63 74 69 76 |........|RgnActiv|
|00000fa0| 61 74 65 2c 0d 09 09 09 | 09 09 09 09 56 41 4c 28 |ate,....|....VAL(|
|00000fb0| 57 43 6c 6f 73 65 50 72 | 6f 63 2c 20 4e 49 4c 29 |WClosePr|oc, NIL)|
|00000fc0| 2c 09 28 2a 20 4e 6f 20 | 63 6c 6f 73 65 20 70 72 |,.(* No |close pr|
|00000fd0| 6f 63 20 2a 29 0d 09 09 | 09 09 09 09 09 52 67 6e |oc *)...|.....Rgn|
|00000fe0| 48 61 6c 74 2c 09 09 09 | 09 09 09 09 28 2a 20 44 |Halt,...|....(* D|
|00000ff0| 69 73 70 6f 73 61 6c 20 | 70 72 6f 63 65 64 75 72 |isposal |procedur|
|00001000| 65 20 2a 29 0d 09 09 09 | 09 09 09 09 56 41 4c 28 |e *)....|....VAL(|
|00001010| 57 49 64 6c 65 50 72 6f | 63 2c 20 4e 49 4c 29 2c |WIdlePro|c, NIL),|
|00001020| 09 28 2a 20 4e 6f 20 69 | 64 6c 65 20 70 72 6f 63 |.(* No i|dle proc|
|00001030| 20 2a 29 0d 09 09 09 09 | 09 09 09 54 52 55 45 29 | *).....|...TRUE)|
|00001040| 3b 09 09 09 09 09 09 09 | 09 28 2a 20 44 6f 65 73 |;.......|.(* Does|
|00001050| 6e 27 74 20 6d 61 74 74 | 65 72 20 2d 20 6e 6f 20 |n't matt|er - no |
|00001060| 69 64 6c 65 20 70 72 6f | 63 20 2a 29 0d 09 72 67 |idle pro|c *)..rg|
|00001070| 6e 50 6f 72 74 52 65 63 | 74 20 3a 3d 20 72 67 6e |nPortRec|t := rgn|
|00001080| 57 69 6e 64 5e 2e 70 6f | 72 74 52 65 63 74 3b 0d |Wind^.po|rtRect;.|
|00001090| 09 73 65 6c 65 63 74 52 | 67 6e 20 3a 3d 20 4e 65 |.selectR|gn := Ne|
|000010a0| 77 52 67 6e 28 29 3b 09 | 09 09 09 09 09 28 2a 20 |wRgn();.|.....(* |
|000010b0| 53 65 6c 65 63 74 65 64 | 20 72 65 67 69 6f 6e 20 |Selected| region |
|000010c0| 65 6d 70 74 79 20 69 6e | 69 74 69 61 6c 6c 79 20 |empty in|itially |
|000010d0| 2a 29 0d 09 73 65 6c 65 | 63 74 57 68 65 6e 20 3a |*)..sele|ctWhen :|
|000010e0| 3d 20 30 44 3b 09 09 09 | 09 09 09 09 09 09 28 2a |= 0D;...|......(*|
|000010f0| 20 31 73 74 20 63 6c 69 | 63 6b 20 63 61 6e 27 74 | 1st cli|ck can't|
|00001100| 20 62 65 20 64 6f 75 62 | 6c 65 2d 63 6c 69 63 6b | be doub|le-click|
|00001110| 20 2a 29 0d 45 4e 44 20 | 52 67 6e 49 6e 69 74 3b | *).END |RgnInit;|
|00001120| 0d 0d 45 4e 44 20 4d 75 | 6c 74 69 53 6b 65 6c 52 |..END Mu|ltiSkelR|
|00001130| 67 6e 2e 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |gn......|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001190| 52 65 63 74 20 3a 3d 20 | 72 67 6e 57 69 6e 64 5e |Rect := |rgnWind^|
|000011a0| 2e 70 6f 72 74 52 65 63 | 74 3b 0d 09 73 65 6c 65 |.portRec|t;..sele|
|000011b0| 1a 31 2e 20 44 44 45 78 | 70 61 6e 64 45 78 70 61 |.1. DDEx|pandExpa|
|000011c0| 6e 64 54 65 6d 70 46 69 | 6c 65 20 78 02 00 00 00 |ndTempFi|le x....|
|000011d0| 00 00 44 44 54 4d 44 44 | 41 50 01 00 00 00 00 00 |..DDTMDD|AP......|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 a5 f4 97 76 00 00 | 10 b4 00 00 01 7e 44 3b |.....v..|.....~D;|
|00001200| 09 09 09 09 09 09 09 09 | 09 28 2a 20 31 73 74 20 |........|.(* 1st |
|00001210| 63 6c 69 63 6b 20 63 61 | 6e 27 74 20 62 65 20 64 |click ca|n't be d|
|00001220| 6f 75 62 6c 65 2d 63 6c | 69 63 6b 20 2a 29 0d 45 |ouble-cl|ick *).E|
|00001230| 4e 44 20 52 67 6e 49 6e | 69 74 3b 0d 0d 45 4e 44 |ND RgnIn|it;..END|
|00001240| 20 4d 75 6c 74 69 53 6b | 65 6c 52 67 6e 2e 0d 00 | MultiSk|elRgn...|
|00001250| 00 7c 00 fc 00 7d 01 54 | 80 00 00 00 00 00 04 14 |.|...}.T|........|
|00001260| 00 14 04 79 00 74 88 00 | 00 00 00 17 00 3c 00 78 |...y.t..|.....<.x|
|00001270| 00 94 01 95 00 01 01 00 | 00 00 00 00 00 00 e8 61 |........|.......a|
|00001280| 00 00 00 48 00 0a 43 6f | 75 72 69 65 72 00 54 20 |...H..Co|urier.T |
|00001290| 41 44 44 52 45 53 53 3b | 0d 46 52 4f 4d 20 51 75 |ADDRESS;|.FROM Qu|
|000012a0| 69 63 6b 44 72 61 00 06 | 00 02 00 50 00 20 01 53 |ickDra..|...P. .S|
|000012b0| 01 fd 00 50 00 20 01 53 | 01 fd 9c aa d5 69 00 00 |...P. .S|.....i..|
|000012c0| 0b a1 00 00 0b a1 00 00 | 0e 08 01 00 00 00 01 00 |........|........|
|000012d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 00 cc 28 |...L...L|...2...(|
|000012e0| 02 94 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000012f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 01 aa ea 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+